<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Document</title>
<style> 
</style>
</head>
<body>

  <div id='app'>
  </div>

<script src='https://cdn.bootcdn.net/ajax/libs/vue/2.6.12/vue.js'></script>
<script src="./axios.js"></script>
<script>
  /*
    http://rap2api.taobao.org/app/mock/273079/api/v1/getArt
  */
  const app = new Vue({
    el: '#app'
    ,data: {
      films: []
    }
    ,methods: {
      fetchData(){
        axios({
          url: 'http://rap2api.taobao.org/app/mock/273079/api/v1/getArt',
          method: 'post',
          data: {
            id: 1
          }
        }).then( res=> {
          console.log(res);
        })
      }
    }
    ,created() {
      this.fetchData();
    }
  })
  
</script>
</body>
</html>